# $Id: PKGBUILD 180574 2013-03-23 17:59:33Z dan $
# Maintainer: Dan McGee <dan@archlinux.org>

pkgname=pacman-mirrorlist
pkgver=20130323
pkgrel=1
pkgdesc="Arch Linux mirror list for use by pacman"
arch=('any')
url="http://www.archlinux.org/mirrorlist/"
license=('GPL')
backup=(etc/pacman.d/mirrorlist)
source=(mirrorlist)

# NOTE on building this package:
# * Go to the trunk/ directory
# * Run bash -c ". PKGBUILD; updatelist"
# * Update the checksums, update pkgver
# * Build the package

updatelist() {
  rm -f mirrorlist
  wget -O mirrorlist https://www.archlinux.org/mirrorlist/all/smart/
}

package() {
  mkdir -p $pkgdir/etc/pacman.d
  install -m644 $srcdir/mirrorlist $pkgdir/etc/pacman.d/
}

md5sums=('08032f98d15355e4db429d1051b7f350')
sha256sums=('ff64020137938fea07428be7099163b8b90b706d86bd3fc81abcc798c4066853')
md5sums=('af594702a4f3b7d806058c1252802980')
sha256sums=('9f7dae21315da1e45805694e472a449db7b472c4a772c171156712b20f168df2')
